home *** CD-ROM | disk | FTP | other *** search
- Path: valhalla.cs.wright.edu!not-for-mail
- From: pedwards@valhalla.cs.wright.edu (Phil Edwards)
- Newsgroups: gnu.g++.help,comp.lang.c++
- Subject: clog?? What the $!#@*^ is "clog" ?!!?
- Followup-To: gnu.g++.help
- Date: 18 Feb 1996 23:29:37 GMT
- Organization: the top of Solsbury Hill.
- Approved: I couldn't find five dentists to ask. Sorry.
- Distribution: world
- Message-ID: <4g8cp1$v8k@valhalla.cs.wright.edu>
- NNTP-Posting-Host: gamma.cs.wright.edu
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- [crossposted to gnu.g++.help and comp.lang.c++ -- followups to gnu.g++.help]
-
-
-
- The compiler is gcc 2.7.2, the system is a DEC Alpha running OSF/1
- 3.0, lately upgraded to dUnix 3.2. It is 37 degrees F outside, and the
- wind is from the west. My sign is Leo. I think that covers most of
- the things that tend to affect computers...
-
-
- Now. For years I have been getting this and similar warnings, usually
- whenever I try to use any of the cout/cerr streams. The programs run
- jus' fine, but the warnings are extremely annoying, especially when you
- know the code is clean. Can anyone give me some tips to clear this
- up? Are there certain libraries I am not including?
-
- Here is an example of a compilation and link which produced the error.
- ***This server is not even using cout/cerr, either:***
-
- ================================================================
- g++ -g -I. -I$HOME/include -Wall -c common.C
- g++ -g -I. -I$HOME/include -Wall -c server.C
- g++ -g -I. -I$HOME/include -Wall -o server.`hostname|sed 's/\..*//'`
- common.o server.o
-
- /usr/ucb/ld:
- Warning: clog defined as GLOBAL DATA but is defined in a shared lib as
- a GLOBAL FUNC
- /usr/ucb/ld:
- Warning: clog defined as GLOBAL DATA but is defined in a shared lib as
- a GLOBAL FUNC
- ================================================================
-
- Since it's the linker producing the warning and not the compiler, I
- don't know which of the *many* lines of code is responsible, if any.
- (So I didn't post any of the code.) The only mention of "clog" in
- any files anywhere is in iostream.h:
-
- // clog->rdbuf() == cerr->rdbuf()
- extern _IO_ostream_withassign cout, cerr, clog;
-
- Any tips would be gratefully accepted. Thanks for your time!
-
-
- Luck++;
- Phil
-
- --
- #include<std/disclaimer.h> The gods do not protect fools. Fools
- finger pedwards@gamma.cs.wright.edu are protected by more capable fools.
- email pedwards@valhalla.cs.wright.edu -Larry Niven
-